package com.aaa.hospital.mapper;

import com.aaa.hospital.pojo.domain.News;
import com.aaa.hospital.pojo.query.NewsQuery;
import com.aaa.hospital.pojo.vo.NewsVO;

import java.util.List;

/**
 * @program:qy888
 * @description:www
 * @author:LJW
 * @version: 1.0
 * @create:2022-2-16 09:14
 */
public interface NewsMapper {


    List<News>  queryNews(NewsQuery query);

    Long queryNewsTotal(NewsQuery query);

    int addNews(NewsVO newsVO);

    int deletenews(Integer id);

    News seeByID(Integer id);

    List<News> index();

    News showByID(Integer id);

}
